import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 获取标准码数据
  getStandardCodeData: {
    url: '/api/v1/config/code/get_codelist',
    method: 'post'
  },
  //获取单位类型
  getCompanyList: {
    url: '/api/v1/org/company/get_list',
    method: 'get'
  },
  //获取oss地址
  getOssAddress: {
    url: '/api/v1/base/third_app/get_third_app_detail',
    method: 'post'
  },
  //大屏-在册人员组件
  onRegPersonPieChart: {
    url: '/intecons/api/v1/screen/all_screen/on_reg_person_pie_chart',
    method: 'post'
  },
  // 获取指标数据
  getScreenData: {
    url: '/api/v1/screen/screen_index_data/get_index_data_list',
    method: 'post'
  },
  getMaterialManagementNewAPI: {
    url: '/balance/api/v1/work/e_truck_io/biasList',
    method: 'post'
  },
  // 获取数字块数据
  getScreenBlockDataAPI: {
    url: '/proxy/api/v1/screen/unit_data',
    method: 'post'
  },
  // 获取实例化列表
  getPageInstance: {
    url: '/adminc/v1/config_manage/b_instance_page/get_instance_list',
    method: 'get'
  },
  getIntimePeople: {
    url: 'intecons/admin/api/v1/employee/runtime_in_num',
    method: 'get'
  },
  //获取单位类型
  getConsoleStandardCode: {
    url: '/adminc/v1/config_manage/b_code/get_code_list',
    method: 'get'
  },
  // 获取标准码-无token
  getCodeNoToken: {
    url: '/api/v1/config/code/get_codes_list_no_token',
    method: 'post'
  },
  getCodeNoToken: {
    url: '/api/v1/config/code/get_codes_list_no_token',
    method: 'post'
  },
  getInstanceAllList: {//实例-列表全部（监控台查看全部）
    url: '/adminc/v1/config_manage/b_instance_page/get_instance_all_list',
    method: 'get'
  },
  // 获取标准码-无token
  getCodeNoToken: {
    url: '/api/v1/config/code/get_codes_list_no_token',
    method: 'post'
  },
  //获取代码值列表(多个)-获取标准码
  getCodesList: {
    url: '/api/v1/config/code/get_codes_list',
    method: 'post'
  },
  // 获取标准码
  getStandardCode: {
    url: '/adminc/v1/config_manage/b_code/get_code_list',
    method: 'get'
  }
}

export default openBuildService(settings)
